-- GENERATED SPELL FOR [Kurden Bloodclaw] --


function spell0_2804(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2804', 587, 1)
end

function spell1_2804(pUnit, Event) --@Frightening Shout,n/a--
pUnit:FullCastSpellOnTarget(19134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2804', 6337, 1)
end

function spell2_2804(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2804', 5348, 1)
end

function spell3_2804(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15589,pUnit)
pUnit:RegisterEvent('Sorts_2804', 566, 1)
end

function spell4_2804(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(13736,pUnit)
pUnit:RegisterEvent('Sorts_2804', 2000, 1)
end

function Sorts_2804(pUnit, Event)
local choix_sorts_2804 = math.random(0, 4)
if choix_sorts_2804 == 0 then
pUnit:RegisterEvent('spell0_2804', 1, 1)
end
if choix_sorts_2804 == 1 then
pUnit:RegisterEvent('spell1_2804', 1, 1)
end
if choix_sorts_2804 == 2 then
pUnit:RegisterEvent('spell2_2804', 1, 1)
end
if choix_sorts_2804 == 3 then
pUnit:RegisterEvent('spell3_2804', 1, 1)
end
if choix_sorts_2804 == 4 then
pUnit:RegisterEvent('spell4_2804', 1, 1)
end
end

function mob2804_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2804', math.random(1500, 3000), 1)
end

function mob2804_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2804_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2804_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2804, 1, 'mob2804_Action')
RegisterUnitEvent(2804, 2, 'mob2804_Leave')
RegisterUnitEvent(2804, 3, 'mob2804_Kill')
RegisterUnitEvent(2804, 4, 'mob2804_Die')
